package com.hunan.api.catv.entity.enums;


public enum TpnsAudienceType {

    all(1, "all"),

    token_list(2, "token_list");

    private final Integer code;

    private final String value;


    TpnsAudienceType(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

    public static String getValue(Integer code) {
        TpnsAudienceType[] rcs = TpnsAudienceType.values();
        for (TpnsAudienceType rc : rcs) {
            if (rc.getCode().equals(code)) {
                return rc.getValue();
            }
        }
        return null;
    }
}
